DBtools.h++ Sample Programs
Here are three sample programs using different features of DBtools.h++:
- Sample 1
- This sample establishes a connection to a SYBASE database, creates a table on the server, and uses the reader to read
back the values. The values are then stored on a Memory Table and accessed row by row. This example can run on both WINDOWS
and SUN/SOLARIS or SUNOS.
- Sample 2
- This sample establishes a connection to a SYBASE database, creates a table and populates the table with about 10 values.
It then uses the reader to read back the values from the table that are less than 2. The example can run on both WINDOWS and
SUN/SOLARIS or SUNOS.
- Sample 3
- This sample creates a table on the database and populates it with some data. Then it creates a stored procedure that
takes two input and two output parameters. The stored procedure then queries the database, retrieves values, and returns
them as output parameters. This example can run on both UNIX or WINDOWS, and uses both the ORACLE or SYBASE
styles for stored procedures.
Order now DBtools.h++ main page Tools.h++
© Copyright 1995, Rogue Wave Software, Inc.